package cn.enaium.message.repository;

import cn.enaium.message.entity.Message;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface MessageRepository {
    int saveMessage(Message message);
    int updateMessage(Message message);
    int deleteMessage(long id);
    List<Message> findAllMessage();
    List<Message> findByIdMessage(long uid);
}
